﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="StuffPages.aspx.cs" Inherits="School.Pages.Admission.StuffPages" MasterPageFile="~/MasterALSafa.Master" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div align="center" dir="rtl">

    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
        <asp:Panel ID="pnlAdd" runat="server" Visible="true">
            <table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td colspan="2" class="admintitle" style="height: 19px">
                        ادخال البيانات</td>
                </tr>
                <tr>
                    <td style="width: 160px">
                        <asp:Label ID="Label17" runat="server" CssClass="lab" Text="اسم المستخدم"></asp:Label>
                    </td>
                    <td align="right">
                        <asp:DropDownList ID="ddlUser_Id" class="text" runat="server" AutoPostBack="True" 
                            onselectedindexchanged="ddlUser_Id_SelectedIndexChanged">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td style="width: 160px">
                        اختار الصفحات</td>
                    <td align="right">
                        <asp:GridView ID="gridPages" runat="server" AllowPaging="True" 
                            AllowSorting="True" AlternatingRowStyle-CssClass="GridItemAltername" 
                            AutoGenerateColumns="False" CssClass="Grid" DataKeyNames="Id" 
                            FooterStyle-CssClass="GridHeaderFooter" HeaderStyle-CssClass="GridHeaderFooter" 
                            OnPageIndexChanging="gridPages_PageIndexChanging" 
                            OnRowDataBound="gridPages_RowDataBound"
                            OnSelectedIndexChanged="gridPages_SelectedIndexChanged" 
                            PagerStyle-CssClass="GridPager" Width="50%">
                            <AlternatingRowStyle CssClass="GridItemAltername" />
                            <Columns>
                                <asp:BoundField DataField="Page_Title" HeaderText="الصفحة" />
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:CheckBox ID="CheckBox1" runat="server" />
                                        <asp:Label ID="lbltrid" runat="server" Text='<%# Eval("Id") %>' Visible="false"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <FooterStyle CssClass="GridHeaderFooter" />
                            <HeaderStyle CssClass="GridHeaderFooter" />
                            <PagerStyle CssClass="GridPager" />
                        </asp:GridView>
                    </td>
                </tr>
                
                
                <tr>
                    <td colspan="2">
                        <asp:Label ID="lblMessageAdd" runat="server" CssClass="error"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:Button ID="btnSave" runat="server" CssClass="graybutton" 
                            OnClick="btnSave_Click" Text="حفظ صلاحيات المستخدم" />

                        &nbsp;<asp:Button ID="btnCancel" runat="server" CssClass="graybutton" CausesValidation="False"
                            OnClick="btnCancel_Click" Text="تفريغ الحقول" />
                        &nbsp;<asp:Button ID="btnend" runat="server" CssClass="graybutton" CausesValidation="False"
                            OnClick="btnend_Click" Text="انهاء" />
                    </td>
                </tr>
            </table>
        </asp:Panel>
    </div>
    <br />

    <br />
    

        
         
</asp:Content>
